//
//  AppleIDLoginUtils.h
//  GC_OC
//
//  Created by Tianbao Wang on 2022/5/26.
//

#import <Foundation/Foundation.h>
#import <AuthenticationServices/AuthenticationServices.h>

NS_ASSUME_NONNULL_BEGIN

@interface AppleIDLoginUtils : NSObject<ASAuthorizationControllerDelegate,ASAuthorizationControllerPresentationContextProviding>

+ (instancetype)shared;

- (void)authrization: (void (^)(ASAuthorizationAppleIDCredential*, NSError*))block  API_AVAILABLE(ios(13.0));
@end

NS_ASSUME_NONNULL_END
